import { createAPI } from '@/utils/request'

export const list = data => createAPI('/users/', 'get', data)
export const simple = data => createAPI('/users/simple', 'get', data)
export const add = data => createAPI('/users', 'post', data) // 添加用户
export const update = id => createAPI('/users/' + id, 'put') // 用户修改
export const remove = id => createAPI('/users/' + id, 'delete') // 用户删除
export const detail = id => createAPI('/users/' + id, 'get') // 用户详情
